/**
 * This program is free software, you can redistribute it and/or modify.
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * This file is a part of the CANN Open Software.
 * Licensed under CANN Open Software License Agreement Version 2.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */

/*!
 * \file apply_fused_ema_adam_tiling.h
 * \brief
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 */
#ifndef OPS_BUILD_IN_OP_TILING_RUNTIME_APPLY_FUSED_EMA_ADAM_TILING_H_
#define OPS_BUILD_IN_OP_TILING_RUNTIME_APPLY_FUSED_EMA_ADAM_TILING_H_


#include "register/tilingdata_base.h"
#include "tiling/tiling_api.h"

namespace optiling {

const uint32_t DTYPE_BF16_KEY = 100;
const uint32_t DTYPE_FP16_KEY = 101;
const uint32_t DTYPE_FP32_KEY = 102;

BEGIN_TILING_DATA_DEF(ApplyFusedEmaAdamTilingData)
TILING_DATA_FIELD_DEF(float, lr);
TILING_DATA_FIELD_DEF(float, beta1);
TILING_DATA_FIELD_DEF(float, beta2);
TILING_DATA_FIELD_DEF(float, eps);
TILING_DATA_FIELD_DEF(float, emaDecay);
TILING_DATA_FIELD_DEF(float, weightDecay);
TILING_DATA_FIELD_DEF(uint64_t, mode);
TILING_DATA_FIELD_DEF(uint64_t, biasCorrection);

TILING_DATA_FIELD_DEF(uint64_t, frontCoreNum);
TILING_DATA_FIELD_DEF(uint64_t, tailCoreNum);
TILING_DATA_FIELD_DEF(uint64_t, coreCalcNum);
TILING_DATA_FIELD_DEF(uint64_t, loopNum);
TILING_DATA_FIELD_DEF(uint64_t, coreCalcMax);
TILING_DATA_FIELD_DEF(uint64_t, frontCalcExtra);
TILING_DATA_FIELD_DEF(uint64_t, tailCalcExtra);
END_TILING_DATA_DEF;
REGISTER_TILING_DATA_CLASS(ApplyFusedEmaAdam, ApplyFusedEmaAdamTilingData)

} // namespace optiling
#endif // OPS_BUILD_IN_OP_TILING_RUNTIME_APPLY_FUSED_EMA_ADAM_TILING_H_